package cn.golxen.goods.service.impl;

import cn.golxen.goods.entity.Category;
import cn.golxen.goods.mapper.CategoryMapper;
import cn.golxen.goods.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> selectCategory() {
        return categoryMapper.selectCategory();
    }

    @Override
    public Category selectCategoryByCategoryId(Integer id) {
        return categoryMapper.selectCategoryByCategoryId(id);
    }
}
